/*
 * Created on 2006-3-14
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package cn.com.sbell.vss.csg.vap;

import javax.servlet.http.HttpServletRequest;

import cn.com.sbell.vss.ICommander;
import cn.com.sbell.vss.Response;
import cn.com.sbell.vss.csg.heartbeat.HeartBeatMessage;

/**
 * @author liang.a.chen
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class HeartBeatListener implements ICommander{

	public Response execute(HttpServletRequest request) {
		HeartBeatMessage message = new HeartBeatMessage();
		message.setServerIp(request.getRemoteAddr());
		message.setPort(request.getRemotePort());
		
		Response response = Response.createResponse(request);
		response.setParameters("<parameters/>");
	
		return response;
	}
}
